package cc.uncarbon.module.custom.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-新增/编辑商户 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AdminStoreInsertOrUpdateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
    private Long id;

    @Schema(description = "商户名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(max = 255, message = "【商户名称】最长255位")
    @NotBlank(message = "商户名称不能为空")
    private String name;

    @Schema(description = "商户地址")
    @Size(max = 255, message = "【商户地址】最长255位")
    private String address;

    @Schema(description = "商户Logo图片链接")
    @Size(max = 255, message = "【商户Logo图片链接】最长255位")
    private String logo;

    @Schema(description = "法人姓名")
    @Size(max = 100, message = "【法人姓名】最长100位")
    private String legalPersonName;

    @Schema(description = "法人联系电话")
    @Size(max = 15, message = "【法人联系电话】最长15位")
    private String legalPersonPhone;

    @Schema(description = "身份证正面图片链接")
    @Size(max = 255, message = "【身份证正面图片链接】最长255位")
    private String idCardFront;

    @Schema(description = "身份证反面图片链接")
    @Size(max = 255, message = "【身份证反面图片链接】最长255位")
    private String idCardBack;

    @Schema(description = "排序序号")
    private Integer sortOrder;

    @Schema(description = "状态")
    private EnabledStatusEnum status;

}
